package com.rtf.framework.dao.config.datasource.support;

import com.rtf.framework.dao.config.AppDaoProperties;
import org.apache.shardingsphere.api.config.sharding.ShardingRuleConfiguration;

public interface ShardingRuleConfigurationAware {

    /**
     * 设置数据分片配置
     * @param shardingDataSourceConfig
     */
    void setShardingDataSourceConfig(AppDaoProperties.ShardingDataSource shardingDataSourceConfig) ;

    /**
     * 获取分片规则配置
     * @return
     */
    ShardingRuleConfiguration getShardingRuleConfiguration() ;

}
